﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Neoseeker.NAMFox.Tests.Configuration
{
    public class TargetElement : ConfigurationElement
    {
        private const string EnvironmentAttributeName = "environment";
        private const string DeveloperAttributeName = "developer";

        /// <summary>
        /// Gets or sets the name of the developer whose dev environment the tests will access.
        /// </summary>
        [ConfigurationProperty(DeveloperAttributeName, IsRequired = true)]
        public string Developer
        {
            get { return (string)this[DeveloperAttributeName]; }
            set { this[DeveloperAttributeName] = value; }
        }

        /// <summary>
        /// Gets or sets the target environment for the test.
        /// </summary>
        [ConfigurationProperty(EnvironmentAttributeName, IsRequired = true)]
        public TargetEnvironment Environment
        {
            get { return (TargetEnvironment)this[EnvironmentAttributeName]; }
            set { this[EnvironmentAttributeName] = value; }
        }
    }
}
